From 30aab42f713056646ae137ed2f2a85168d573c81 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 25 Jul 2006 16:11:12 +0100 Subject: [PATCH] [LINUX][NET] Add default ethtool get_link implementation to all interfaces. Some management tools rely on this operation. From: Mark McLoughlin Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/netback/interface.c | 1 + linux-2.6-xen-sparse/drivers/xen/netback/loopback.c | 1 + linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 1 + 3 files changed, 3 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/interface.c b/linux-2.6-xen-sparse/drivers/xen/netback/interface.c index 3d5db4452f..f52e2601b7 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/interface.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/interface.c @@ -76,6 +76,7 @@ static struct ethtool_ops network_ethtool_ops = { .get_tx_csum = ethtool_op_get_tx_csum, .set_tx_csum = ethtool_op_set_tx_csum, + .get_link = ethtool_op_get_link, }; netif_t *netif_alloc(domid_t domid, unsigned int handle, u8 be_mac[ETH_ALEN]) diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c index 64c6c352d4..e4e438b438 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c @@ -129,6 +129,7 @@ static struct ethtool_ops network_ethtool_ops = .set_sg = ethtool_op_set_sg, .get_tso = ethtool_op_get_tso, .set_tso = ethtool_op_set_tso, + .get_link = ethtool_op_get_link, }; /* diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index 1f2096049a..92057e101c 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -1201,6 +1201,7 @@ static struct ethtool_ops network_ethtool_ops = .set_sg = xennet_set_sg, .get_tso = ethtool_op_get_tso, .set_tso = xennet_set_tso, + .get_link = ethtool_op_get_link, }; #ifdef CONFIG_SYSFS -- 2.30.2